package com.xxgc.spring.dao.impl;

import com.xxgc.spring.dao.UserDaoMapper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class UserDao implements UserDaoMapper {

    private  int age;

    public void setAge(int age) {
        this.age = age;
    }
    private List<String> userList = new ArrayList<String>();
    private Map<String,String> userMap;

    public void setUserMap(Map<String, String> userMap) {
        this.userMap = userMap;
    }

    public void setUserList(List<String> userList) {
        this.userList = userList;
    }

    public int selectUserById() {
        System.out.println("数据库查询到了翠花"+age+"岁");
        for (String s:userList
             ) {
            System.out.println("s = " + s);
        }
        System.out.println("userMap = " + userMap);
        return 0;
    }
}
